message->pointer.state,
message->scroll.dir == 0
? GDK_SCROLL_UP
- : GDK_SCROLL_DOWN,
- FALSE);
+ : GDK_SCROLL_DOWN);
node = _gdk_event_queue_append (display, event);
_gdk_windowing_got_event (display, node, event, message->base.serial);
return tevent->pointer_emulated;
}
- case GDK_SCROLL:
- case GDK_SCROLL_SMOOTH:
- {
- GdkScrollEvent *sevent = (GdkScrollEvent *) event;
-
- return sevent->pointer_emulated;
- }
-
default:
break;
}
GdkDeviceTool *tool,
guint32 time,
GdkModifierType state,
- GdkScrollDirection direction,
- gboolean emulated)
+ GdkScrollDirection direction)
{
GdkScrollEvent *self = gdk_event_alloc (GDK_SCROLL, surface, device, time);
self->tool = tool != NULL ? g_object_ref (tool) : NULL;
self->state = state;
self->direction = direction;
- self->pointer_emulated = emulated;
self->unit = GDK_SCROLL_UNIT_WHEEL;
return (GdkEvent *) self;
* %GDK_SCROLL_SMOOTH).
* @delta_x: the x coordinate of the scroll delta
* @delta_y: the y coordinate of the scroll delta
- * @pointer_emulated: whether the scroll event was the result of
- * a pointer emulation
* @tool: a `GdkDeviceTool`
* @history: (element-type GdkTimeCoord): array of times and deltas
* for other scroll events that were compressed before delivering the
GdkScrollDirection direction;
double delta_x;
double delta_y;
- gboolean pointer_emulated;
gboolean is_stop;
GdkDeviceTool *tool;
GArray *history; /* <GdkTimeCoord> */
GdkDeviceTool *tool,
guint32 time,
GdkModifierType state,
- GdkScrollDirection direction,
- gboolean emulated);
+ GdkScrollDirection direction);
GdkEvent * gdk_touch_event_new (GdkEventType type,
GdkEventSequence *sequence,
NULL,
get_time_from_ns_event (nsevent),
state,
- direction,
- FALSE);
+ direction);
}
if (phase == NSEventPhaseEnded || phase == NSEventPhaseCancelled)
NULL,
seat->pointer_info.time,
device_get_modifiers (seat->logical_pointer),
- direction,
- TRUE);
+ direction);
_gdk_wayland_display_deliver_event (seat->display, event);
}
NULL,
xev->time,
_gdk_x11_device_xi2_translate_state (&xev->mods, &xev->buttons, &xev->group),
- direction,
- FALSE);
+ direction);
}
else
NULL,
xev->time,
state,
- direction,
- FALSE);
+ direction);
}
else
{